package com.glialsoft.persistencia.entidades;

// Generated May 26, 2014 12:25:10 AM by Hibernate Tools 3.4.0.CR1

import java.util.HashSet;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import com.sun.xml.internal.bind.v2.schemagen.xmlschema.List;

/**
 * Roles generated by hbm2java
 */
@Entity
@Table(name = "roles", schema = "public")
public class Roles implements java.io.Serializable {

	private int idRol;
	private String nombreRol;


	public Roles() {
	}

	public Roles(int idRol) {
		this.idRol = idRol;
	}

	public Roles(int idRol, String nombreRol) {
		this.idRol = idRol;
		this.nombreRol = nombreRol;
	
	}

	@Id
	@Column(name = "id_rol", unique = true, nullable = false)
	public int getIdRol() {
		return this.idRol;
	}

	public void setIdRol(int idRol) {
		this.idRol = idRol;
	}

	@Column(name = "nombre_rol")
	public String getNombreRol() {
		return this.nombreRol;
	}

	public void setNombreRol(String nombreRol) {
		this.nombreRol = nombreRol;
	}

	

	

}
